import { Button, View } from '@tarojs/components'

import './detail.scss'
import { useLoad, useRouter } from '@tarojs/taro'


export default function Index() {
  const router = useRouter()

  useLoad((options) => {
    console.log(options)
  })

  const onCollection = () => {
    // 发起收藏请求 id
    console.log(router.params)
  }

  return (
    <View className='index'>
      详情页
      <Button onClick={onCollection}>收藏</Button>
    </View>
  )
}
